package com.wang.commons.utils;

/**
 *  常量
 */
public class Constant {




    public class System {
        /**
         * 系统版本
         */
        public static final String VERSION="v2";

        /**
         * 用户组
         */
        public static final String USER = "user:";
    }
    
    //缓存相关
    public class Cache {
        /**
         * 用户token缓存前缀名
         */
    	public static final String USER_TOKEN = "user:token:";

    	public static final String VISIT="CLASSIFY:";
        /**
         * 权限缓存常量
         */
        public static final String HREF_PERMISSION = "href:permission:";
        public static final String MENU_PERMISSION = "menu:permission:";

        public static final long HREF_MENU_CACHE_TIME = 3600 * 24;
    }


    public class JWT {
        /**
         *
         */
        public static final String HANDLER = "Authorization";

        public static final String JWT_USER_NAME="name";

        /**
         * token 过期时间(线上15分钟)
         */
        public static final long TOKEN_EXPIRATION_TIME=24*60*60*1000;

        /**
         * 用户token缓存前缀名
         */
        public static final String USER_TOKEN = "user:token:";
    }






    /**
     * 会议状态
     */
    public static final Long MEETING_STATUS_WEIKAISHI = 1464152196072345602L;
    public static final Long MEETING_STATUS_JINXINGZHONG = 1464152049171042305L;
    public static final Long MEETING_STATUS_YIJIESHU = 1464152114660904962L;
    public static final Long MEETING_STATUS_YIQUXIAO = 1464152153911201794L;

    public static final String MEETING_STATUS_WKS = "未开始";
    public static final String MEETING_STATUS_JXZ = "进行中";
    public static final String MEETING_STATUS_YJS = "已结束";
    public static final String MEETING_STATUS_YQX = "已取消";

    public static final String MEETING_STATUS_WKS_CODE = "MB_STATUS_4";
    public static final String MEETING_STATUS_JXZ_CODE = "MB_STATUS_1";
    public static final String MEETING_STATUS_YJS_CODE = "MB_STATUS_2";
    public static final String MEETING_STATUS_YQX_CODE = "MB_STATUS_3";

    /**
     * 人员角色
     */
    public static final Long MEETING_PERSON_ZHUCHIREN = 1464152316385955841L;
    public static final Long MEETING_PERSON_CANHUIFUZEREN = 1464152400133623809L;
    public static final Long MEETING_PERSON_CANHUIZHE = 1464152364633034754L;

    /**
     * 数据状态：1正常；2停用；3删除
     */
    public static final Integer DATE_STATUS_NORMAL =1;
    public static final Integer DATE_STATUS_STOP =2;
    public static final Integer DATE_STATUS_DELETE=3;
    /**
     * 会议状态
     */
    public static final String MEETING_TYPE = "MB_TYPE";
    public static final String MEETING_STATUS = "MB_STATUS";
    public static final String MEETING_ROLE = "MB_ROLE";

    public static final Integer INTEGER_CODE_BEGIN =100001;
    
    //数据权限 redis 前缀
    public static final String ROLE_DATA_PERMISSION = "role_data_permission:";
 
    //Shiro redis 前缀
    public static final String PREFIX_SHIRO_CACHE = "storyweb-bp:cache:";
 
    //redis-key-前缀-shiro:refresh_token
    public final static String PREFIX_SHIRO_REFRESH_TOKEN = "storyweb-bp:refresh_token:";


    public final static String LOCK = "REDLOCK";

    public final static String ORDER_QUEUE = "order_queue";


    /**
     *  	是否有效  IS_DELETE 删除   IS_DELETE_FALSE 有效
     */
    public final static int IS_DELETE = -1;
    public final static int IS_DELETE_FALSE = 1;


    
    /**
     * 	查询菜单树的类型
     */
	public static final String TREE_TYPE_MENU = "menu";

	public static final String TREE_TYPE_TREE = "tree";
	
	/**
	 * 菜单
	 */
	public static final String  MENU = "1";
	/**
	 * 按钮
	 */
	public static final String  BUTT = "2";


    /**
     * token 过期时间
     */
	public static final long TOKEN_EXPIRATION_TIME=24*60*60*1000;


    /**
     * 0.失败 1.成功 2.处理中
     */
    public static final int TRANSACTION_STATUS_0 = 0;
    public static final int TRANSACTION_STATUS_1 = 1;
    public static final int TRANSACTION_STATUS_2 = 2;

    /**
     * 0.未发送 1.成功 -1.失败
     */
    public static final int MERCHANT_CALL_STATUS_0 = 0;
    public static final int MERCHANT_CALL_STATUS_1 = 1;
    public static final int MERCHANT_CALL_STATUS_2 = 2;
    public static final int MERCHANT_CALL_STATUS_fail = -1;
    /**
     * 默认密码
     */
    public static final String PASSWORD = "JGgs123456";



    /**
     * 数据同步的问题
     */
    public static final int IS_DATA_NO_SYNC = 0;

    /**
     * 任务级别
     */
    public static final int LEVEL_CODE_STATUS_1 = 1;
    public static final int LEVEL_CODE_STATUS_2 = 2;
    public static final int LEVEL_CODE_STATUS_3 = 3;
    public static final String LEVEL_CODE_NAME_1 = "公司级";
    public static final String LEVEL_CODE_NAME_2 = "部门级";
    public static final String LEVEL_CODE_NAME_3 = "普通级";
    /**
     * 任务状态
     */
    public static final String INSERT_TASK = "发布任务";
    public static final String TASK_PERIODIC_UPDATE = "任务阶段性更新";
    public static final String UPDATE_TASK = "修改任务";
    public static final String OVER_TASK = "完成任务";
    public static final String SUPPORT_TASK = "请求支持";
    public static final String DELAYED_TASK = "任务延时";
    public static final String TASK_UPDATED = "任务修改";
    public static final String INSERT_TASK_CODE = "taskPublish";
    public static final String UPDATE_PERIODIC_TASK_CODE = "taskStageUpdated";
    public static final String UPDATE_TASK_CODE = "taskUpdated";
    public static final String OVER_TASK_CODE = "taskCompleted";
    public static final String SUPPORT_TASK_CODE = "taskSupport";
    public static final String DELAYED_TASK_CODE = "taskDelayed";
    public static final String TASK_UPDATED_CODE = "taskUpdated";
    /**
     * 数据范围
     */
    public static final String ALL_AND_TASK = "allProjAndTask";
    public static final String PERSONAL_TASK = "personalTask";
    public static final String DEPT_AND_TASK = "deptProjAndTask";
    public static final String PERSONAL_AND_TASK = "personalProjAndTask";
    /**
     * @Author ZJ
     * @Description 会议常量
     * @Date 2021/11/30
     * @Param
     * @return
     */
    public static final String MB_ROLE = "MB_ROLE";
    public static final String HOST_PERSON = "MB_ROLE_1";
    public static final String ORDINARY_PARTICIPANTS = "MB_ROLE_2";
    public static final String CONTENT_PERSON = "MB_ROLE_3";

    /**
     * 文件路径
     */
    public static final String WINDOWS_PATH = "D:";
//    public static final String LINUX_PATH = "/home/jgcompany/java/file";
    public static final String LINUX_PATH = "/var/local/jgcompany/file";

    /**
     * 支持任务种类
     */
    public static final String SUPPORT_TASK_1 = "1";
    public static final String SUPPORT_TASK_2 = "2";
    public static final String SUPPORT_TASK_3 = "3";
    public static final String SUPPORT_TASK_4 = "4";
    public static final String SUPPORT_TASK_5 = "5";
    public static final String SUPPORT_TASK_6 = "6";

    /**
     * 项目状态
     */
    public static final int PROJECT_STATUS_1 = 1;
    public static final int PROJECT_STATUS_2 = 2;
    public static final int PROJECT_STATUS_3 = 3;

    public static final String ZAIJIAN = "在建";
    public static final String WANGONG = "完工";
    public static final String NIJIAN = "拟建";

    public static final String XIAOJI = "小计";


    /**
     * 路由黑白名单 1.黑名单 2.白名单
     */
    public static int ROUTER_FILTER_TYPE_1 = 1;
    public static int ROUTER_FILTER_TYPE_2 = 2;


    /**
     * 0.自动 1.人工
     */
    public static int PROVIDER_AUTO = 0;
    public static int PROVIDER_MANUAL = 1;


    /**
     * 用户状态
     * 0.锁定 1.有效
     */
    public static int USER_LOCK = 0;
    public static int USER_UNLOCK = 1;


}
